import 'package:flutter/material.dart';
import 'package:bitsdojo_window/bitsdojo_window.dart';
import 'package:note_app/screens/home_page.dart';

void main() {
  runApp(const NoteApp());

  // 设置窗口属性
  doWhenWindowReady(() {
    final win = appWindow;
    win.minSize = Size(400, 600);
    win.title = "Note App";
    win.alignment = Alignment.center;
    win.show();
  });
}

class NoteApp extends StatelessWidget {
  const NoteApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Note App',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const NoteHomePage(),
    );
  }
}